package com.jplus.dao;

import com.jplus.entity.Order;

import java.util.Date;
import java.util.List;

public interface OrderDao {

    int insertOneOrder(Order order);

    int deleteOneOrderByBusinessId(String businessId);

    int updateOneOrderByBusinessId(Order order);

    int updateAcceptedOrderByBusinessId(Order order);

    int updateOneCommentsByBusinessId(Order order);

    //int setOrderStatusFalseByBusinessId(String businessId);

    Order getOneOrderByBusinessId(String businessId);

    List<Order> getAllUnacceptedOrders();

    List<Order> getAllMyPublishedOrdersById(Integer id);

    List<Order> getAllMyGotOrdersById(Integer id);

    int customerUserCancelOrder(String businessId);

    int businessUserCancelOrder(String businessId);

    List<Order> getUnCompletedOrders(Integer id);

    int pay(String payChannel, String escrowTradeNo, Date payTime, String businessId);

    List<String> getUmbrellaTypeArray();
}
